﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="HealthRelated.aspx.vb" Inherits="sofballwebsite.healthrelated" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
        <asp:DropDownList ID="ddlbmi" runat="server">
            <asp:ListItem Value="Main.aspx">Main Page</asp:ListItem>
            <asp:ListItem Value="Equipments.aspx">Softball Equipments</asp:ListItem>
            <asp:ListItem Value="Rules.aspx">Game Rules</asp:ListItem>
            <asp:ListItem Value="HealthRelated.aspx">Health Related</asp:ListItem>
            <asp:ListItem Value="Shop.aspx">Shop</asp:ListItem>
        </asp:DropDownList>
        <asp:Button ID="ddlbmibtn" runat="server" Text="Go to Page" />
    </p>
    <p>
        <strong>BMI Metric Calculator</strong></p>
    <p>
        Please insert Weight in Kg
        <asp:TextBox ID="tb_weight" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="weight_validator" runat="server" 
            ControlToValidate="tb_weight" ErrorMessage="Weight value is wrong" 
            MaximumValue="300" MinimumValue="0.3" Type="Double"></asp:RangeValidator>
        <br />
    </p>
    <p>
        Please insert Height in Meters
        <asp:TextBox ID="tb_Height" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="height_validator" runat="server" 
            ControlToValidate="tb_Height" ErrorMessage="Height value is wrong" 
            MaximumValue="3" MinimumValue="0.3" Type="Double"></asp:RangeValidator>
    </p>
    <p>
        <asp:Button ID="btn_calculator" runat="server" Text="Calculate" />
    </p>
    <p>
        <asp:Label ID="lbl_result" runat="server"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <p>
        Weight Converter Lb to Kg</p>
    <p>
        <asp:TextBox ID="tbweightconverter" runat="server"></asp:TextBox>
        <asp:Button ID="btnweightconverter" runat="server" Text="Convert" />
        &nbsp;<asp:RangeValidator ID="weightconvertervalidator" runat="server" 
            ControlToValidate="tbweightconverter" 
            ErrorMessage="Please insert a valid Weight value" MaximumValue="500" 
            MinimumValue="1" Type="Double"></asp:RangeValidator>
        <asp:Label ID="lblweightconverter" runat="server"></asp:Label>
    </p>
    <p>
        Height Converter Feet to Cm</p>
    <p>
        Feet&nbsp;
        <asp:TextBox ID="tbfeetconverter" runat="server"></asp:TextBox> 
        <asp:RangeValidator ID="feetvalidator" runat="server" 
            ControlToValidate="tbfeetconverter" ErrorMessage="Please inser a valid value" 
            MaximumValue="6" MinimumValue="2" Type="Double"></asp:RangeValidator>
&nbsp;Inches&nbsp;
        <asp:TextBox ID="tbinchconverter" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="inchvalidtor" runat="server" 
            ControlToValidate="tbinchconverter" ErrorMessage="Please insert a valid value" 
            MaximumValue="11" MinimumValue="0" Type="Double"></asp:RangeValidator>
    </p>
    <p>
        <br />
        <asp:Button ID="btnheightconverter" runat="server" Text="Convert" />
        <asp:Label ID="lblheightconverter" runat="server"></asp:Label>
    </p>
    <p>

    Resources<br />
    <asp:HyperLink ID="FuziLogik" runat="server" 
        NavigateUrl="http://www.fuzilogik.com/Sports-Library/Softball/Softball-Equipment.html">FuziLogik</asp:HyperLink>
    <br />
    <asp:HyperLink ID="mnu" runat="server" 
        NavigateUrl="http://www.mnu.edu/intramurals/sports-rules/softball-rules.html">MNU</asp:HyperLink>
    <br />
    <asp:HyperLink ID="bucks" runat="server" 
        NavigateUrl="http://www.bucks.edu/life/athletics/mens/baseball/">bucks</asp:HyperLink>
    <br />
    <asp:HyperLink ID="Wikipedia" runat="server" 
        NavigateUrl="http://en.wikipedia.org/wiki/Softball">Wikipedia</asp:HyperLink>
   
</asp:Content>
